package com.hw.springcloud;

import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.cloud.openfeign.EnableFeignClients;

/**
 * @Classname: ApplicationOpenFeignOrder80
 * @Description: OpenFeign启动类  使用OpenFeign的时候启动类需要加上@EnableFeignClients注解
 * @Date: 2021/8/16
 * @Author: huwei
 */
@SpringBootApplication(exclude = DataSourceAutoConfiguration.class)
@Slf4j
@EnableFeignClients
public class OpenFeignOrder80 {

    public static void main(String[] args) {
        SpringApplication.run(OpenFeignOrder80.class, args);
        log.info("OpenFeign启动类启动成功");
    }
}
